<script setup lang="ts">
import { ref } from 'vue'

defineProps({
  displayListLabels: {
    type: Array<string>,
    default: []
  },
  displayLabelOtherNames: {
    type: Array<string>,
    default: []
  },
  displayListRef: {
    type: Object,
    default: ref([])
  },
})
</script>

<template>
  <div class="display-area">
    <div class="display-group" v-for="(_displayObj, index) in displayListLabels">
      <label>{{ displayLabelOtherNames[index] }}</label>
      <el-input v-model="displayListRef[index]" disabled/>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.display-area {
  margin-block: 2px;
}
</style>